package cn.yl.course.server.mapper;

import cn.yl.course.server.entity.Course;
import cn.yl.course.server.entity.dto.CourseDto;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * 课程 Mapper 接口
 * </p>
 *
 * @author yl
 * @since 2022-04-22
 */
@Mapper
public interface CourseMapper extends BaseMapper<Course> {

    ArrayList<CourseDto> getAllCourse(@Param(Constants.WRAPPER) Wrapper wrapper);

}
